class FatantsController < ApplicationController
  active_scaffold :fatant do |config|
    config.label = "Faturamentos Anteriores"
    config.theme = :blue

    config.columns = [:data, :fatdeps]

    config.nested.add_link("Por Depósitos", [:fatdeps])

    config.list.per_page = Setting.new.qtd_porpagina
    config.create.link.label = "NOVO"
    config.search.link.label = "BUSCA"
    config.update.link.label = "Editar"
    config.show.link.label = "Mostrar"
    config.delete.link.label = "Apagar"
    config.delete.link.confirm = "Apagar?"
  end
end
